#include "mouth_detector.hpp"

void detectAndDrawMouth(cv::Mat &img, const cv::Mat &faceROI, const cv::Rect &face, cv::CascadeClassifier &smile_cascade)
{
    std::vector<cv::Rect> smiles;
    smile_cascade.detectMultiScale(faceROI, smiles, 1.3, 5, 0 | cv::CASCADE_SCALE_IMAGE, cv::Size(30, 30));
    for (const auto &smile : smiles)
    {
        cv::rectangle(img, cv::Point(face.x + smile.x, face.y + smile.y),
                      cv::Point(face.x + smile.x + smile.width, face.y + smile.y + smile.height),
                      cv::Scalar(0, 0, 255), 2);
    }
}

    

